//
//  BBLibraryController.h
//  xNose
//
//  Created by ben smith on 9/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class BBLibraryView;
@class BBNode;

@interface BBLibraryController : NSObject {
	NSMutableArray * libraryNodes;
	BBLibraryView * libView;
}

@property (retain) 	NSMutableArray * libraryNodes;
@property (retain) 	BBLibraryView * libView;

+ (BBLibraryController*)sharedLibraryController;
+ (NSArray*)libraryNodes;
- (BOOL)pointInLibrary:(NSPoint)p;
- (IBAction)loadFromFile:(NSString*)filePath;
- (IBAction)saveToFile:(NSString*)filePath;
- (NSView*)hitTest:(NSPoint)p;
- (void)addNode:(BBNode*)aNode;
- (void)awakeFromNib;
- (void)makeDefaultLibrary;
- (void)removeNode:(BBNode*)aNode;

// 10 methods


@end
